package com.axjy.service.impl;

import com.axjy.mapper.LogsMapper;
import com.axjy.pojo.Logs;
import com.axjy.service.LogsService;
import com.axjy.service.vo.Pager;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by asus on 2018/3/13.
 */
@Service("logsService")
public class LogsServiceImpl implements LogsService {

    @Resource
    private LogsMapper logsMapper;

    @Override
    public void addLogs(Logs logs) {
        logsMapper.addLogs(logs);
    }

    @Override
    public List<Logs> search(String userCode) {
        return logsMapper.search(userCode);
    }

    @Override
    public List<Logs> getByDate(String userCode, String startDate, String endDate) {
        return logsMapper.getByDate(userCode, startDate, endDate);
    }

}
